<?php

/**
 * Description of MyDataTable
 * 
 * @author anhdung
 * @since 26-07-2013 - 17:28:13
 */
class MyDataTable extends DataTable
{

    public function getActionLink($item, $action)
    {
        $route = Yii::app()->controller->id;
        $params = $_GET;
        $params['pk'] = $item->getPrimaryKey();
        $params['type'] = $item->type;

        return Yii::app()->controller->createUrl("$route/$action", $params);
    }

}

/**
 * End of MyDataTable
 */